package com.zhuang.chapter07.work01;

public class Employee {
	private String name;

	private int month;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public Employee(String name, int month) {
		super();
		this.name = name;
		this.month = month;
	}

	public Employee() {
		super();
	}

	// 如果该月员工过生日，则公司会额外发放100元
	public int getSalary(int month) {
		int salary = 0;
		if (this.month == month) {
			salary += 100;
		}
		return salary;
	}
}
